<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>经纪人详情 - 人才职业生涯规划平台</title>
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <link rel="stylesheet" href="../css/agents.css">
    <style>
        /* 经纪人详情页专用样式 */
        .app-container {
            background-color: #f5f7fa;
        }
        
        .header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            height: 56px;
        }

        .agent-profile {
            background-color: white;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .profile-header {
            position: relative;
            padding: 20px;
            display: flex;
            align-items: center;
        }

        .profile-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid white;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            margin-right: 15px;
        }

        .profile-badge {
            position: absolute;
            bottom: 20px;
            left: 80px;
            width: 24px;
            height: 24px;
            background-color: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid white;
            color: white;
            font-size: 10px;
        }

        .profile-info {
            flex: 1;
        }

        .profile-name {
            font-size: 20px;
            font-weight: 600;
            margin: 0 0 5px;
            color: #333;
        }

        .profile-title {
            font-size: 14px;
            color: #666;
            margin: 0 0 5px;
        }

        .profile-rating {
            display: flex;
            align-items: center;
            font-size: 14px;
        }

        .rating-stars {
            color: #ffb24a;
            margin-right: 5px;
        }

        .rating-number {
            margin-right: 10px;
            font-weight: 500;
        }

        .rating-count {
            color: #999;
            font-size: 12px;
        }

        .profile-tags {
            padding: 0 20px 15px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .profile-tag {
            background-color: #f0f4ff;
            color: var(--primary-color);
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 12px;
            display: inline-block;
        }

        .profile-actions {
            display: flex;
            padding: 15px 20px;
            border-top: 1px solid #f0f0f0;
            gap: 15px;
        }

        .action-btn {
            flex: 1;
            padding: 12px 0;
            border-radius: 8px;
            border: none;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            cursor: pointer;
        }

        .contact-btn {
            background-color: var(--primary-color);
            color: white;
        }

        .follow-btn {
            background-color: #f0f4ff;
            color: var(--primary-color);
        }

        .section-container {
            background-color: white;
            margin-bottom: 20px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .section-title {
            font-size: 18px;
            font-weight: 600;
            margin: 0 0 15px;
            color: #333;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-title i {
            color: var(--primary-color);
        }

        .about-content {
            font-size: 14px;
            line-height: 1.6;
            color: #555;
            margin-bottom: 20px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }

        .stat-card {
            background-color: #f9f9fb;
            padding: 15px 10px;
            border-radius: 8px;
            text-align: center;
        }

        .stat-value {
            font-size: 20px;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 12px;
            color: #666;
        }

        .service-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .service-card {
            background-color: white;
            border: 1px solid #eaeaea;
            border-radius: 10px;
            padding: 15px;
            text-align: center;
            transition: all 0.3s;
            cursor: pointer;
        }

        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .service-card.selected {
            border: 2px solid var(--primary-color);
            background-color: rgba(78, 110, 242, 0.05);
        }

        .service-card h4 {
            font-size: 14px;
            margin: 0 0 5px;
            color: #333;
        }

        .service-card .price {
            font-size: 16px;
            color: var(--accent-color);
            font-weight: 600;
            margin: 0;
        }

        .timeline {
            margin-bottom: 20px;
        }

        .timeline-item {
            position: relative;
            padding-left: 30px;
            padding-bottom: 20px;
            border-left: 2px solid #eaeaea;
            margin-left: 15px;
        }

        .timeline-item:last-child {
            border-left: 2px solid transparent;
            padding-bottom: 0;
        }

        .timeline-dot {
            position: absolute;
            left: -10px;
            top: 0;
            width: 18px;
            height: 18px;
            background-color: var(--primary-color);
            border-radius: 50%;
            border: 3px solid white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .timeline-content {
            background-color: #f9f9fb;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 5px;
        }

        .timeline-title {
            font-size: 14px;
            font-weight: 600;
            margin: 0 0 5px;
            color: #333;
        }

        .timeline-period {
            font-size: 12px;
            color: #999;
            margin: 0 0 10px;
        }

        .timeline-desc {
            font-size: 13px;
            color: #555;
            line-height: 1.5;
            margin: 0;
        }

        .review-cards {
            margin-bottom: 20px;
        }

        .review-card {
            background-color: #f9f9fb;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 15px;
        }

        .reviewer {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .reviewer-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            margin-right: 10px;
            object-fit: cover;
        }

        .reviewer-info {
            flex: 1;
        }

        .reviewer-name {
            font-size: 14px;
            font-weight: 500;
            margin: 0 0 2px;
            color: #333;
        }

        .review-date {
            font-size: 12px;
            color: #999;
            margin: 0;
        }

        .reviewer-rating {
            display: flex;
            color: #ffb24a;
            font-size: 12px;
        }

        .review-text {
            font-size: 13px;
            line-height: 1.5;
            color: #555;
            margin: 0;
        }

        .view-more {
            text-align: center;
            margin-top: 20px;
        }

        .view-more-btn {
            background-color: #f0f4ff;
            color: var(--primary-color);
            border: none;
            border-radius: 20px;
            padding: 8px 20px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s;
        }

        .view-more-btn:hover {
            background-color: #f5f5f5;
        }

        .view-all-container {
            display: flex;
            justify-content: center;
            margin: 15px 0;
        }
        
        .view-all-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--primary-color);
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 3px 10px rgba(78, 110, 242, 0.2);
        }
        
        .view-all-btn i {
            margin-left: 5px;
            font-size: 14px;
            transition: transform 0.3s;
        }
        
        .view-all-btn:hover {
            background-color: var(--secondary-color);
            box-shadow: 0 4px 12px rgba(78, 110, 242, 0.3);
        }
        
        .view-all-btn:hover i {
            transform: translateX(3px);
        }

        .view-all-link {
            font-size: 14px;
            color: var(--primary-color);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s;
        }

        .view-all-link:hover {
            color: var(--secondary-color);
        }

        .view-all-link i {
            font-size: 12px;
            transition: transform 0.3s;
        }

        .view-all-link:hover i {
            transform: translateX(3px);
        }

        .recommended-agents {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-top: 15px;
        }

        .recommended-agent-card {
            background-color: white;
            border: 1px solid #eaeaea;
            border-radius: 10px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .recommended-agent-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
            border-color: var(--primary-color);
        }

        .agent-card-header {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .agent-card-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 10px;
            border: 2px solid white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .agent-card-info {
            flex: 1;
        }

        .agent-card-name {
            font-size: 14px;
            font-weight: 600;
            margin: 0 0 2px;
            color: var(--text-color);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .agent-card-name i {
            color: var(--primary-color);
            font-size: 12px;
        }

        .agent-card-title {
            font-size: 12px;
            color: var(--text-secondary);
            margin: 0 0 3px;
        }

        .agent-card-rating {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .agent-card-rating .rating-stars {
            color: #ffd700;
            font-size: 10px;
        }

        .agent-card-rating .rating-number {
            font-size: 12px;
            font-weight: 500;
        }

        .agent-card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .agent-card-tag {
            padding: 2px 6px;
            background-color: #f0f4ff;
            color: var(--primary-color);
            border-radius: 4px;
            font-size: 10px;
        }

        @media (max-width: 600px) {
            .recommended-agents {
                grid-template-columns: repeat(1, 1fr);
            }
        }

        @media (min-width: 601px) and (max-width: 800px) {
            .recommended-agents {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .bottom-cta {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: white;
            padding: 15px 20px;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            z-index: 100;
        }

        .cta-price {
            flex: 1;
        }

        .price-label {
            font-size: 12px;
            color: #666;
            margin: 0 0 2px;
        }

        .price-value {
            font-size: 20px;
            font-weight: 600;
            color: var(--accent-color);
            margin: 0;
        }

        .cta-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 12px 25px;
            font-size: 15px;
            font-weight: 500;
            flex: 1;
            max-width: 180px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .cta-btn:hover {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
        }

        .tab-bar {
            display: none;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
    </style>
</head>
<body>
    <div class="app-container">
        <!-- 头部导航 -->
        <header class="header">
            <a href="agents.html" class="back-btn"><i class="bi bi-arrow-left"></i></a>
            <h1 class="page-title">经纪人详情</h1>
            <div class="search-btn"><i class="bi bi-share"></i></div>
        </header>

        <!-- 主内容区 -->
        <main class="main-content" id="agent-detail-content">
            <!-- 内容将通过JavaScript动态加载 -->
            <div class="loading-indicator">
                <i class="bi bi-hourglass-split"></i>
                <p>加载中...</p>
            </div>
        </main>

        <!-- 底部CTA -->
        <div class="bottom-cta">
            <div class="cta-price">
                <p class="price-label">咨询起步价</p>
                <p class="price-value">¥<span id="agent-price">299</span>起</p>
            </div>
            <button class="cta-btn">立即预约</button>
        </div>
    </div>

    <script src="../js/agent-detail.js"></script>
</body>
</html> 